<?
  set_include_path('./'.PATH_SEPARATOR.dirname(__FILE__)."/../");
  include_once "mode/person/fgroup.php";
  try{
  $rows=tbhelper::produce("fgroup");
  $db = new db("mysql:host=localhost;dbname=test1","root","kaixin9999");
  $rows->col["fgid"]->colValue=null;
  $rows->col["fgname"]->colValue="testada";
  $rows->col["fgowner"]->colValue="122";
  //echo get_class($rows);
  //print_r($rows);
  $fgroup=new fgroupc(&$db,$rows,8);
  $fgroup->delete();
       echo $fgroup->id;
  }catch(Error $er){
	$er->recode();
  }catch(Exception $er){
	echo $er->getMessage();
}
?>